Simplify the Boolean expression